$(document).ready(function(){
	//for search/enrollees
	setInterval("counter()",4000);
});
function counter(){
	var current_enrollment = $('input:hidden#current_enrollment_value').val();
	var url = $('input:hidden#current_enrollment_value').attr('url');
	$.getJSON( url, function( data ) {
	  $( "#counter" ).html( +data.total - +current_enrollment );
	});
}